package tests;

import common.Utils;
import org.openqa.selenium.By;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-03-31
 * Time:13:24
 */
public class MyPost extends Utils {
    public static String url="http://127.0.0.1:9580/index.html";
    public MyPost() {
        super(url);
    }
    public void Mypost(){
        driver.findElement(By.cssSelector("body > div.page > header.navbar.navbar-expand-md.navbar-light.d-print-none > div > div > div.nav-item.dropdown > a")).click();
        driver.findElement(By.cssSelector("#index_user_profile")).click();
        String res=driver.findElement(By.cssSelector("#profile_nickname")).getText();
        String ex="xiaoyuannn";
        assert ex.equals(res);
        String res1=driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div.col-lg-4 > div > div > div > div > h2")).getText();
        String ex1="个人介绍";
        assert ex1.equals(res1);
    }
}
